package com.mswyt.utils.msHandlebean.annotation;

import org.springframework.stereotype.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @MsCrud把某张表数据，变成下拉框值，支持搜索。
 * @author: MsDictSelect
 * @ClassName: MsJoinDict
 */
@Component
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface MsDictSelect {

    //给字段其别名，比如我字段名称叫name，前台下拉框绑定的是label
    String alias();
}
